
module.exports.getPoeticUrl = getPoeticUrl;
module.exports.getPageCount = getPageCount;

function getPoeticUrl(str, page) {
	if (page == undefined){
		page = 1;
	}
	str = 'https://so.gushiwen.org/authors/authorvsw_' + str.substring(8, str.length - 5) + 'A' + page + '.aspx';
	return str;
}

function getPageCount(str) {
	return str.substring(str.indexOf('/') + 1, str.length - 1) - 0;
}
